﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OSVDB_Model
{
    public class SecFoc : AbstractVuln
    {
        private String description;
        private String title;
        private String link;
        private DateTime date;
        private String id;

        public SecFoc()
        {
            
        }

        public SecFoc(String title, String link, String description, DateTime date)
        {
            this.Title = title;
            this.Link = link;
            this.Description = description;
            this.Date = date;

            int idx = this.Link.LastIndexOf("/");
            this.Id = this.Link.Substring(idx+1);
            
        }

        public String Id
        {
            get
            {
                return this.id;
            }
            set
            {
                this.id = value;
            }
        }

        public String Description
        {
            get
            {
                return this.description;
            }

            set
            {
                this.description = value;
            }

        }

        public String Title
        {
            get
            {
                return this.title;
            }

            set
            {
                this.title = value;
            }

        }

        public String Link
        {
            get
            {
                return this.link;
            }

            set
            {
                this.link = value;
            }

        }

        public DateTime Date
        {
            get
            {
                return this.date;
            }

            set
            {
                this.date = value;
            }

        }
    }
}
